Skip to content

use cyscale#284

Merged
thewhaleking merged 25 commits intorelease/2.0.0from
feat/thewhaleking/use-cyscale
Apr 9, 2026
Merged

use cyscale#284
thewhaleking merged 25 commits intorelease/2.0.0from
feat/thewhaleking/use-cyscale

Conversation

@thewhaleking
Copy link
Copy Markdown
Collaborator

@thewhaleking thewhaleking commented Mar 27, 2026

Initial benchmarks:

scalecodec: /Users/benjaminhimes/Git/cy-scale-codec/scalecodec/__init__.py
Block: 0xd7f3f7c508cc350a561edc4e2739c019d09f0aa394f1af7d053d73d7b15b5143

──────────────────────────────────────────────────────────────────────
  Batch decode  (µs per page)
──────────────────────────────────────────────────────────────────────
  Scenario                                   bt+ss58    cy_batch  speedup
  ──────────────────────────────────────  ──────────  ──────────  ───────
  Uids (u16, N=100)                           3150.3       786.7     4.0× cy
  TotalHotkeyAlpha (N=100)                    3095.0       776.8     4.0× cy

──────────────────────────────────────────────────────────────────────
  Single decode  (µs/call)
──────────────────────────────────────────────────────────────────────
  Scenario                                   bt+ss58    cy_batch  speedup
  ──────────────────────────────────────  ──────────  ──────────  ───────
  Uids (u16, N=100)                           1345.7        36.3    37.0× cy
  TotalHotkeyAlpha (N=100)                    1343.4        36.1    37.2× cy

──────────────────────────────────────────────────────────────────────────────────────────
  Single-key hash-prefix skip  (µs per 100-item page, synthetic)
──────────────────────────────────────────────────────────────────────────────────────────
  Scenario                              bt+ss58 old  bt+ss58 new      cy old      cy new   cy gain
  ────────────────────────────────────  ──────────  ──────────  ──────────  ──────────  ────────
  Uids (u16, N=100) (2B key)                1826.7      1368.3        47.7         9.2        5×
  TotalHotkeyAlpha (N=100) (8B key)         1870.4      1357.0        47.4         9.1        5×

Interesting benchmarks with Bittensor block 3014340's events (144_163 items): now decodes in ~2.7 seconds compared to ~7 seconds for py-scale-codec

@thewhaleking thewhaleking marked this pull request as draft March 27, 2026 12:04
@github-actions github-actions bot added run-bittensor-sdk-tests Runs Bittensor SDK tests. run-bittensor-cli-tests Runs BTCLI tests. labels Mar 27, 2026
@thewhaleking thewhaleking removed run-bittensor-sdk-tests Runs Bittensor SDK tests. run-bittensor-cli-tests Runs BTCLI tests. labels Mar 27, 2026
@thewhaleking thewhaleking changed the base branch from staging to release/2.0.0 March 30, 2026 13:04
@thewhaleking thewhaleking changed the title [WIP] use cyscale use cyscale Mar 30, 2026
@thewhaleking thewhaleking linked an issue Mar 30, 2026 that may be closed by this pull request
@thewhaleking thewhaleking marked this pull request as ready for review March 30, 2026 13:07
@thewhaleking thewhaleking requested a review from a team March 30, 2026 13:20
@bittoby bittoby mentioned this pull request Apr 2, 2026
11 tasks
@thewhaleking thewhaleking merged commit e78146c into release/2.0.0 Apr 9, 2026
22 checks passed
@thewhaleking thewhaleking deleted the feat/thewhaleking/use-cyscale branch April 9, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decoded addresses returned from parent and child key storage calls Use cyscale

1 participant